﻿<UserControl x:Class="Kinect.ShowCase.Views.KinectButtonView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:k="clr-namespace:Kinect.Framework.Controls;assembly=Kinect.Framework"
             xmlns:kap="clr-namespace:Kinect.Framework.AttachProperties;assembly=Kinect.Framework"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <TextBlock Text="" x:Name="Debug" FontSize="40" HorizontalAlignment="Center" VerticalAlignment="Top"/>
        <k:KinectButton Width="150" Height="100" x:Name="button1" Margin="0,20,0,0" k:KinectManipulation.IsSelectable="True" k:KinectManipulation.Click="OnButtonClick">
            <k:KinectButton.Content>
                <Grid Width="150" Height="100" Background="Violet">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="5*" />
                        <ColumnDefinition Width="145*" />
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="KinectButton sample" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Margin="15,42,20,42" />
                </Grid>
            </k:KinectButton.Content>
        </k:KinectButton>
        <k:KinectButton Width="150" Height="100" x:Name="button2" Margin="88,169,-88,-149" k:KinectManipulation.IsSelectable="True" k:KinectManipulation.Click="OnButtonClick">
            <k:KinectButton.Content>
                <Grid Width="150" Height="100" Background="Green">
                    <TextBlock Text="KinectButton sample" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </Grid>
            </k:KinectButton.Content>
        </k:KinectButton>
        <k:KinectButton Width="150" Height="100" x:Name="button3" Margin="306,76,-306,-56" k:KinectManipulation.IsSelectable="True" k:KinectManipulation.Click="OnButtonClick">
            <k:KinectButton.Content>
                <Grid Width="150" Height="100" Background="Bisque">
                    <TextBlock Text="KinectButton sample" Foreground="Black" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </Grid>
            </k:KinectButton.Content>
        </k:KinectButton>
    </Grid>
</UserControl>
